﻿<Window x:Class="CsvViewer.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        mc:Ignorable="d" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" d:DesignHeight="300" d:DesignWidth="500" 
        MinWidth="500"
        MinHeight="300"
        SizeToContent="Manual"
        Title="CsvViewer" >
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="1*"/>
        </Grid.RowDefinitions>
        <Menu Grid.Row="0">
            <MenuItem Header="File">
                <MenuItem Header="Open"  Click="MenuOpenClick"/>
                <MenuItem Header="Save"  Click="MenuSaveClick"/>
                <MenuItem Header="Close" Click="MenuCloseClick"/>
                <Separator />
                <MenuItem Header="Exit" Click="MenuExitClick"/>
            </MenuItem>
        </Menu>
        <DataGrid x:Name="datagrid" 
                  Grid.Row="1"
                  EnableRowVirtualization="True"
                  EnableColumnVirtualization="False"
                  CanUserAddRows="False"
                  CanUserDeleteRows="False" 
                  ItemsSource="{Binding}" 
                  HorizontalGridLinesBrush="DarkGray" 
                  VerticalGridLinesBrush="DarkGray" 
                  ClipboardCopyMode="IncludeHeader" 
                  BorderThickness="0">
        </DataGrid>
    </Grid>
</Window>
